<?PHP 
if (!session_start()) { session_start(); };
/*if (!isset($_SESSION['lgnapproved'])) {
	die(header('Location: login.php'));
}*/
include("functions.php");
include("cnnxn.php");
connect();

if (isset($_GET['did'])) {
	
	$SQLdt='DELETE FROM av_eventplayers WHERE eventid='.$_GET['eid'].' AND divisionid='.$_GET['did'].';';
	$senddt=mysqli_query($db,$SQLdt) or die(mysqli_error($db));
	
	$SQLdt='DELETE FROM av_eventdivisions WHERE eventid='.$_GET['eid'].' AND divisionid='.$_GET['did'].';';
	$senddt=mysqli_query($db,$SQLdt) or die(mysqli_error($db));

	mysqli_close($db);
	die(header("Location: av_eventresults.php?eid=".$_GET['eid']));	
}

?>
